package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * ClassName: GoodsService
 * Description:
 * Date: 2022/1/15 10:35
 *
 * @version:
 * @since JDK 1.8
 */
public interface GoodsService {

    Page<Goods> selectPage(Integer page, Integer rows, String codeOrName, Integer goodsTypeId);

    Page<Goods> getGoodsList(Integer page, Integer rows, String goodsName, Integer goodsTypeId);

    void insertOrUpdateGoods(Goods goods);

    void deleteGoodsByIds(Integer ids);

    Page<Goods> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    Page<Goods> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    void saveStock(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);

    ServiceVO deleteStock(Integer goodsId);

    List<Goods> getlistAlarm();

}
